package com.class05.pojo;

import jakarta.validation.constraints.*;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2023/12/15 16:26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Order {
    //    @Size(min = 1, max = 10)
    @Min(1)
    private Integer id;
    @NotNull
    private String orderNo; // 订单号
    @Future//标识只能用将来日期
    private Date orderTime; // 下单时间
    @Max(6)
    private int orderStatus; // 订单状态(0、下单1、未下单)
    @Max(10000)
    private BigDecimal orderAmount; // 订单金额

}
